package core

import (
	"openzbox.com/iot"
	"openzbox.com/log"
)

type Service struct {
	Type     iot.IOTS_TYPE `json:"type"`
	Host     string        `json:"host"`
	Port     string        `json:"port"`
	Username string        `json:"username"`
	Password string        `json:"password"`
	ClientID string        `json:"clientid,omitempty"`
	Desc     string        `json:"desc"`
}

func (mbox *Mbox) LoadIoTServices() error {
	services := mbox.Services
	for _, value := range services {
		//fmt.Println("Index =", index, "Value =", value)
		log.Infof("load IoT service:%v", value)

	}
	return nil
}
